import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './permission'
import './style/index.scss'
import * as filterData from './filters'


const app = createApp(App)
app.use(store)
app.use(router)

// 配置vue错误显示的信息
app.config.errorHandler = (err, vm, info) => {
    console.log(err, vm, info)
}

// 设置过滤器
app.config.globalProperties.$filters = {
    translate: filterData.translate
}
app.config.performance = true
app.mount('#app')

